package com.ssy.lingxi.workflow.api.model.vo.response;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 任务执行返回
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-25
 */
public class SimpleTaskCompleteVO implements Serializable {
    private static final long serialVersionUID = 5252085352630874159L;

    public SimpleTaskCompleteVO() {
        this.taskId = "";
        this.step = 0;
        this.status = 0;
        this.statusDesc = "";
        this.properties = new HashMap<>();
    }

    /**
     * 下一个步骤的taskId，调用方本地记录，用做执行下一个步骤的参数
     * <p>如果流程执行完成，返回空字符串</p>
     */
    private String taskId;

    /**
     * 执行完成的流程步骤
     */
    private Integer step;

    /**
     * 当前任务执行返回的外部状态
     */
    private Integer status;

    /**
     * 任务状态描述
     */
    private String statusDesc;

    /**
     * 当前任务的自定义参数
     */
    private Map<String, String> properties;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }
}
